package com.sq.partner.manager.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.IGatewayFacadeUserChannelDao;
import com.sq.partner.manager.mybatis.model.ChannelDto;
import com.sq.partner.manager.mybatis.model.GatewayFacadeUserChannel;
import com.sq.partner.manager.service.IGatewayFacadeUserChannelService;
@Service
public class GatewayFacadeUserChannelServiceImpl implements
		IGatewayFacadeUserChannelService {

	@Resource
	IGatewayFacadeUserChannelDao gatewayFacadeUserChannelDao;
	
	@Override
	public void add(GatewayFacadeUserChannel channel) throws Exception {
		gatewayFacadeUserChannelDao.add(channel);
	}


	@Override
	public List<ChannelDto> queryChannelsByUserid(
			GatewayFacadeUserChannel channel) throws Exception {
		return gatewayFacadeUserChannelDao.queryChannelsByUserid(channel);
	}

}
